package com.itgaohe.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itgaohe.dao.entity.ShopComments;
import com.itgaohe.dao.mapper.ShopCommentsDao;
import com.itgaohe.service.ShopCommentsService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import java.util.List;

@Slf4j
@Service
public class ShopCommentsServiceImpl extends ServiceImpl<ShopCommentsDao, ShopComments> implements ShopCommentsService {
    //根据商品Id查询商铺评论
    @Override
    public List<ShopComments>   queryShopCommentsByShopId(Long shopId){
        return query().eq("shop_id", shopId).list();
    }


    @Override
    public boolean save(ShopComments entity) {
        return super.save(entity);
    }
}
